package com.txts.road.app.system.model.dto;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import jakarta.validation.constraints.*;

/**
 * 系统配置表单对象
 *
 * @author baoyr
 * @since 2025-07-17 10:43
 */
@Getter
@Setter
@Schema(description = "系统配置表单对象")
public class SystemConfigDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "配置ID")
    @NotNull(message = "配置ID不能为空")
    private Long configId;

    @Schema(description = "配置键")
    @NotBlank(message = "配置键不能为空")
    @Size(max=100, message="配置键长度不能超过100个字符")
    private String configKey;

    @Schema(description = "配置值")
    @Size(max=65535, message="配置值长度不能超过65535个字符")
    private String configValue;

    @Schema(description = "配置描述")
    @Size(max=255, message="配置描述长度不能超过255个字符")
    private String configDesc;

   


}
